package testcase.player;

import org.junit.Test;

import satir.player.Player;


import junit.framework.TestCase;

public class Player_setSelfEsteem extends TestCase {
	private Player player;


	/**
	 * Sets up the test fixture.
	 * 
	 * Called before every test case method.
	 */
	public void setUp() {
		player=new Player();
	}

	/**
	 * Tears down the test fixture.
	 * 
	 * Called after every test case method.
	 */
	public void tearDown() {
		player=new Player();
	}

	/**
	 * Step number : 1
	 * Goal: selfEsteem = 1
	 */
	@Test
	public void testSetSelfEsteem1() {
		player.setSelfEsteem(1);
		int actualResult=player.getSelfEsteem();
		assertEquals(1, actualResult);
	}
	
	/**
	 * Step number : 2
	 * Goal: selfEsteem = 9
	 */	
	
	@Test
	public void testSetSelfEsteem9() {
		player.setSelfEsteem(9);
		int actualResult=player.getSelfEsteem();
		assertEquals(9, actualResult);		
	}

	/**
	 * Step number : 3
	 * Goal: selfEsteem = 0
	 */	
	
	@Test
	public void testSetSelfEsteemNegative1() {
		player.setSelfEsteem(-1);
		int actualResult=player.getSelfEsteem();
		assertEquals(0, actualResult);		
	}	
	
	/**
	 * Step number : 4
	 * Goal: selfEsteem = 0
	 */	
	
	@Test
	public void testSetSelfEsteemNegative11() {
		player.setSelfEsteem(11);
		int actualResult=player.getSelfEsteem();
		assertEquals(0, actualResult);		
	}
	
}